package com.jp.knowledge.model;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by jiayen on 16/9/28.
 * 导航栏实体
 */
@Table(name = "HeadLine")
public class HeadLine extends  BaseDb implements Serializable{

    /**
     * typeName : 推荐
     * typeId : N8742
     */

    @Column(name = "typeName")
    private String typeName;
    @Column(name = "typeId")
    private String typeId;

    private boolean isCheck;//是否选中


    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    @Override
    public int getId() {
        return id;
    }

    @Override
    public void setId(int id) {
        this.id = id;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof  HeadLine){
            HeadLine other = (HeadLine) obj;

          return typeId.equals(other.getTypeId());
        }
        return super.equals(obj);
    }

    @Override
    public String toString() {
        return "HeadLine{" +
                "typeName='" + typeName + '\'' +
                ", typeId='" + typeId + '\'' +
                '}';
    }
}
